package com.zzyl.task;

import com.zzyl.service.bookingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class customerMyTask {
    @Autowired
    private bookingService  bookingService;

    @Scheduled(cron = "0 1,31 8-18 * * ?")
    private void runTask(){
        bookingService.updateStatus();
    }

}
